//
//  WHNTitleCollectionReusableView.m
//  YiQiTingShu
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 直到世界的尽头. All rights reserved.
//

#import "WHNTitleCollectionReusableView.h"
#import "FitHeader.h"

@implementation WHNTitleCollectionReusableView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.WHNLeftImageView];
        [self addSubview:self.WHNHeadLabel];
        [self addSubview:self.WHNMoreLabel];
        [self addSubview:self.WHNSmallImageView];
    }
    return self;
}
-(UIImageView *)WHNLeftImageView
{
    if (!_WHNLeftImageView) {
        _WHNLeftImageView = [[UIImageView alloc]initWithFrame:CGRectMake(5 * FitWidth, 10 * FitHeight, 20 * FitHeight, 20 * FitHeight)];
    }
    return _WHNLeftImageView;
}
-(UILabel *)WHNHeadLabel
{
    if (!_WHNHeadLabel) {
        _WHNHeadLabel = [[UILabel alloc]initWithFrame:CGRectMake(_WHNLeftImageView.frame.origin.x + _WHNLeftImageView.frame.size.width + 5 * FitWidth, _WHNLeftImageView.frame.origin.y, 280 * FitWidth, _WHNLeftImageView.frame.size.height)];
        [_WHNHeadLabel NightWithType:UIViewColorTypeNormal];
    }
    return _WHNHeadLabel;
}
-(UILabel *)WHNMoreLabel
{
    if (!_WHNMoreLabel) {
        _WHNMoreLabel = [[UILabel alloc]initWithFrame:CGRectMake(_WHNHeadLabel.frame.origin.x + _WHNHeadLabel.frame.size.width, _WHNHeadLabel.frame.origin.y, 40 * FitWidth, _WHNHeadLabel.frame.size.height)];
        [_WHNMoreLabel NightWithType:UIViewColorTypeNormal];
    }
    return _WHNMoreLabel;
}
-(UIImageView *)WHNSmallImageView
{
    if (!_WHNSmallImageView) {
        _WHNSmallImageView = [[UIImageView alloc]initWithFrame:CGRectMake(_WHNMoreLabel.frame.origin.x + _WHNMoreLabel.frame.size.width - 5 * FitWidth, _WHNMoreLabel.frame.origin.y, 20 * FitHeight, 20 * FitHeight)];
    }
    return _WHNSmallImageView;
}











@end
